import java.util.Scanner;

public class work03 {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入姓名：");
        String name=sc.next();
        System.out.println("姓名第一个字为"+name.substring(0,1));
    }
}
